/*
 */

package com.railway.news.service;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;
import org.apache.commons.lang.StringUtils;

import com.railway.common.base.*;
import com.railway.common.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.railway.news.model.*;
import com.railway.news.dao.*;
import com.railway.news.service.*;
import com.railway.news.vo.query.*;

/**
 * @author  jiangcheng
 * @version 1.0
 * @since 1.0
 */

public interface INewsManager{
	/**
	 *  根据新闻id从XML文件中获得新闻内容
	 * @return
	 */
	public String getNewContentById(String path,String id);
	
	public Page findPage(NewsQuery query);
	
	public Page findPageLike(NewsQuery query);
	

	public News getById(java.lang.String id);
	
	public List<News> findAll();	

	/** 插入数据 */
	public void save(News entity);
	
	public void removeByIdAndPath(String path,java.lang.String id);
	
	public void update(News entity);
	
	public boolean isUnique(News entity, String uniquePropertyNames);
	
	public List<News> findByTitle(String title);
}
